package com.wcfsy.wechat.wx.sys.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface IBaseDao<T> {
	public Long add(T t) throws Exception;
 
	public int deleteById(@Param("id") long id) throws Exception;

	public int update(T t) throws Exception;

	public T getById(@Param("id") long id);

	public List<T> findByParam(Map<String, Object> paramMap);

	public int count(Map<String, Object> paramMap);

	void batchInsert(List<T> list);

	void clear();
}
